//
//  AddToBuyView.h
//  7.13苏宁框架
//
//  Created by mini on 15/7/22.
//  Copyright (c) 2015年 lovena. All rights reserved.
//

#import <UIKit/UIKit.h>
#import "XQModel.h"
@protocol AddToBuyViewDelegate<NSObject>
-(void)closeDelegate;
-(void)configDelegate;
@end
@interface AddToBuyView : UIView
+(instancetype)createView;
//图片属性
@property (weak, nonatomic) IBOutlet UIImageView *picture;
//名字
@property (weak, nonatomic) IBOutlet UILabel *name;
//价钱
@property (weak, nonatomic) IBOutlet UILabel *price;
//购买数量
@property (weak, nonatomic) IBOutlet UILabel *buyCount;
//减少购买数量属性
@property (weak, nonatomic) IBOutlet UIButton *releaseBuyCountView;
//增加购买数量属性
@property (weak, nonatomic) IBOutlet UIButton *addBuyCountView;

//关闭事件
- (IBAction)CloseClick;
//确定按钮
- (IBAction)ConfigClick;
//增加购买数量事件
- (IBAction)addBuyCount;
//减少购买数量事件
- (IBAction)releaseBuyCount;


//代理
@property(nonatomic,weak)id<AddToBuyViewDelegate>delegate;
//模型对象
@property(nonatomic,strong)XQModel *model;
//方法用来赋值
-(void)setData:(XQModel*)model;
@end
